package org.jeecg.modules.icon.model.vo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class BimGeoIconVo {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "关联应用appId")
    private Integer appId;

    @ApiModelProperty(value = "关联应用名称")
    private String appName;

    @ApiModelProperty(value = "图标类别（1-设备，2-车辆）字典编码(GEO_ICON_KIND)")
    @Dict(dicCode = "GEO_ICON_KIND")
    private Integer iconKind;

    /**
     * icon名称
     */
    @Excel(name = "icon名称", width = 15)
    @ApiModelProperty(value = "icon名称")
    @NotBlank(message = "图标名称不能为空")
    private String name;

    /**
     * 类型，1：2D，2:3D
     */
    @Excel(name = "图标类型（3D、2D）", width = 15, dicCode = "GEO_ICON_TYPE")
    @Dict(dicCode = "GEO_ICON_TYPE")
    @ApiModelProperty(value = "图标类型（1-2D，2-3D） 字典编码(GEO_ICON_KIND)")
    @NotNull(message = "图标类型不能为空")
    private Integer type;


    @ApiModelProperty(value = "模型类型（3D:fbx、rfa）")
    private String modelType;

    /**
     * GUID
     */
    @Excel(name = "guid", width = 15)
    @ApiModelProperty(value = "guid(3D:模板ID)")
    private String guid;

    @ApiModelProperty(value = "图标url(2D)")
    private String url;

    @ApiModelProperty(value = "缩略图")
    private String thumbnail;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用", width = 15)
    @ApiModelProperty(value = "启用状态(1-启用，0-禁用) 字典编码(ENABLE_FLAG)")
    @Dict(dicCode = "ENABLE_FLAG")
    private Integer enableFlag;


    /**
     * icon描述
     */
    @Excel(name = "icon描述", width = 15)
    @ApiModelProperty(value = "icon描述")
    private String description;

    /**
     * 是否默认
     */
    @Excel(name = "是否默认", width = 15)
    @ApiModelProperty(value = "是否默认(1-是,0-否) 字典编码(DEFAULT_FLAG)")
    @Dict(dicCode = "DEFAULT_FLAG")
    private Integer defaultFlag;


    /**
     * 是否删除
     */
    @Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除(1-正常，0-已刪除)")
    @TableLogic(value = "1", delval = "0")
    private Integer delFlag;

    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;

    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
